package com.shuidihuzhu.sdb.config;

import com.shuidihuzhu.sdb.helper.log.LogFur;
import com.shuidihuzhu.sdb.helper.log.aspect.LogAspect;
import com.shuidihuzhu.sdb.helper.log.matter.LogMethodInvokeMatter;
import com.shuidihuzhu.sdb.helper.log.matter.LogTraceMatter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Configuration
public class LogHelperConfig {

    @Bean
    public LogAspect getLogAspect() {
        return new LogAspect();
    }

    @Bean
    public List<LogFur> getLogFurList() {
        return List.of(new LogMethodInvokeMatter(), new LogTraceMatter());
    }

}
